﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using QxFramework.Core;
public class TitleProcedure : ProcedureBase
{
    protected override void OnEnter(object args)
    {
        base.OnEnter(args);
        Data.Instance.LoadFromFile();
        AddSubmodule(new TitleSubmodule());
    }

}
public class TitleSubmodule:Submodule
{
    protected override void OnInit(object args = null)
    {
        base.OnInit(args);
        OpenUI("StartUI");
    }
    protected override void OnDestroy()
    {
        base.OnDestroy();
        CloseUI("StartUI");
        Debug.Log("Close UI");
    }
}